package com.ruoyi.system.service.impl;

import com.ruoyi.system.api.domain.SysUser;
import com.ruoyi.system.domain.Material;
import com.ruoyi.system.mapper.MaterialMapper;
import com.ruoyi.system.service.IMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MaterialServiceImpl implements IMaterialService {

    @Autowired
    private MaterialMapper materialMapper;


    @Override
    public List<Material> getListByCondition(Material material) {
        return materialMapper.getListByCondition(material);
    }

    @Override
    public int addMaterial(Material material) {
        return materialMapper.addMaterial(material);
    }

    @Override
    public Material getMaterialDetail(Long id) {
        return materialMapper.getMaterialDetail(id);
    }

    @Override
    public int updateMaterial(Material material) {
        return materialMapper.updateMaterial(material);
    }

    @Override
    public int deleteMaterialByIds(Long[] ids) {
        return materialMapper.deleteMaterialByIds(ids);
    }
}
